package com.service;

import com.entity.Comment;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Milburn
 * @create 2021-03-02 10:33
 */

public interface ICommentService {
    Comment findCommentById(long comment_id);
    Integer addComment(Comment comment);
    Integer updateComment(Comment comment);
    Integer deleteComment(long comment_id);
    List<Comment> findAllComments();
    List<Comment> findCommentsByMovieId(long movie_id);
    PageInfo<Comment> findAllCommentsBySplitPage(Integer page, Integer limit, String keyword);
    PageInfo<Comment> findCommentsByUserName(Integer page,Integer limit,String user_name);
}
